arquivo = open("mapa.txt").readlines()
mapa = open("mapaGerado.txt","w")

posX = 0
posY = 62

blocks = {"1":"Floor", "2":"Wall", "3":"Fire", "4":"Door", "5":"MainCharacter"}
items  = {"1":"Coin",  "2":"Drink", "3":"Adrenalin", "4": "Life"}

for linha in arquivo:
	posY -= 2
	posX = 0
	
	for valor in linha.split():
		posX += 2
		
		if valor[0] != '0':
			mapa.write("%s-%d;%d\n"  %(blocks[valor[0]],posX*10, posY*10))
		
		if valor[1] != '0':
			mapa.write("%s-%d;%d\n"  %(items[valor[1]],posX*10, posY*10))
			
			
			
			
		
		
